package com.pmcc.cj.entity;

import com.pmcc.core.entity.UUIDEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * Created by tomas on 2020/9/30.
 */
@Entity
@Table(name = "cj_commodity_yun_detail")
public class CjCommodityYunDetail extends UUIDEntity {
    @Column(name = "commodity_yun_id")
    private String commodityYunId;//主表id
    @Column(name = "detail_name")
    private String detailName;//组成名称
    @Column(name = "least_dose")
    private Integer leastDose;//最小剂量（ml/亩）
    @Column(name = "big_dose")
    private Integer bigDose;//最大剂量（ml/亩）
    @Column(name = "increase_number")
    private Integer increaseNumber;//每次增加量（ml/亩）
    @Column(name = "increase_money")
    private BigDecimal increaseMoney;//每次增加量价格（元）

    @Column
    private String  relateId;//默认为null, 需要关联的时候去找到对应的id
    @Column
    private String  relateName;//关联表名称

    @Transient
    private String productId;//用于主表页面查询，不能删除
    @Transient
    private String typeId;//用于主表页面查询，不能删除
    @Transient
    private String name;//用于主表页面查询，不能删除
    @Transient
    private Integer defaultValue;//规格选择使用

    public Integer getDefaultValue() {
        return leastDose;
    }

    public void setDefaultValue(Integer defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetailName() {
        return detailName;
    }

    public void setDetailName(String detailName) {
        this.detailName = detailName;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getCommodityYunId() {
        return commodityYunId;
    }

    public void setCommodityYunId(String commodityYunId) {
        this.commodityYunId = commodityYunId;
    }

    public Integer getLeastDose() {
        return leastDose;
    }

    public void setLeastDose(Integer leastDose) {
        this.leastDose = leastDose;
    }

    public Integer getBigDose() {
        return bigDose;
    }

    public void setBigDose(Integer bigDose) {
        this.bigDose = bigDose;
    }

    public Integer getIncreaseNumber() {
        return increaseNumber;
    }

    public void setIncreaseNumber(Integer increaseNumber) {
        this.increaseNumber = increaseNumber;
    }

    public BigDecimal getIncreaseMoney() {
        return increaseMoney;
    }

    public void setIncreaseMoney(BigDecimal increaseMoney) {
        this.increaseMoney = increaseMoney;
    }


    public String getRelateId() {
        return relateId;
    }

    public void setRelateId(String relateId) {
        this.relateId = relateId;
    }

    public String getRelateName() {
        return relateName;
    }

    public void setRelateName(String relateName) {
        this.relateName = relateName;
    }
}
